/*
 * @Date: 2023-03-10 19:34:30
 * @Description: 
 */
import { createNameComponent } from '../createNode';

/** 首页系列 */
const dashboard = {
  /** 首页 */
  dashboard: createNameComponent(() => import('@/views/main/dashboard/index.vue')),
}

/** 考勤管理 */
const attendance = {
  record: createNameComponent(() => import('@/views/main/attendance/record/index.vue')),
  request: createNameComponent(() => import('@/views/main/attendance/request/index.vue')),
}

/** 系统管理 */
const systemManage = {
  /** 菜单 */
  menu: createNameComponent(() => import('@/views/main/systemManage/menu/index.vue')),
  /** 角色 */
  role: createNameComponent(() => import('@/views/main/systemManage/role/index.vue')),
  /** 角色 */
  department: createNameComponent(() => import('@/views/main/systemManage/department/index.vue')),
  /** 用户 */
  user: createNameComponent(() => import('@/views/main/systemManage/users/index.vue')),
  /** 权限 */
  auth: createNameComponent(() => import('@/views/main/systemManage/auth/index.vue')),
}

/** 任务管理 */
const taskManage = {
  work: createNameComponent(() => import('@/views/main/taskManage/work/index.vue')),
  works: createNameComponent(() => import('@/views/main/taskManage/works/index.vue')),
}

/** 报销管理 */
const reimburseManage = {
  reimburse: createNameComponent(() => import('@/views/main/reimburseManage/reimburse/index.vue')),
}

/** 会议管理 */
const meetingManage = {
  meeting: createNameComponent(() => import('@/views/main/meetingManage/meeting/index.vue')),
}

/** 导出所有路由，供后端配置使用 */
const allRoutes = {
  dashboard,
  document,
  systemManage,
  attendance,
  taskManage,
  reimburseManage,
  meetingManage
}

export default allRoutes